- scale
void scale(float x, float y, float z)
Undocumented in source. Be warned that the author may not have intended to support it.
- setPosition
void setPosition(float x, float y, float z)
Undocumented in source. Be warned that the author may not have intended to support it.
- setScale
void setScale(float x, float y, float z)
Undocumented in source. Be warned that the author may not have intended to support it.
- setSize
void setSize(uint width, uint height)
Undocumented in source. Be warned that the author may not have intended to support it.
- translate
void translate(float x, float y, float z)
Undocumented in source. Be warned that the author may not have intended to support it.
- update
void update()
Undocumented in source. Be warned that the author may not have intended to support it.
- updateFromViewport
void updateFromViewport()
Undocumented in source. Be warned that the author may not have intended to support it.
Orthographic Projection camera. A good resource to understand how orthographic projection works follows on: http://learnwebgl.brown37.net/08_projections/projections_ortho.html
But basically: 1. Translate the center to the origin of the screen(top left) 2. Scale the screen size by 2 (remember that we lost the -1..0 range) 3. Alternate the handeness if necessary